package com.example.security.service;

import com.example.security.bean.SysPermission;
import com.example.security.dao.SysPermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 */
@Service
public class SysPermissionService {

    @Autowired
    SysPermissionMapper sysPermissionMapper;

    public List<SysPermission> getAllMenus() {
        return sysPermissionMapper.getAllList();
    }
}
